package com.lxc.domain.register.service;

import com.lxc.domain.register.model.entity.ApplicationInterfaceEntity;
import com.lxc.domain.register.model.entity.ApplicationInterfaceMethodEntity;
import com.lxc.domain.register.model.entity.ApplicationSystemEntity;
import com.lxc.domain.register.repository.IRegisterManageRepository;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author lxc18
 * @date 2024/12/19 16:27
 * @description RegisterManageImpl
 */
@Service
public class RegisterManageServiceImpl implements IRegisterManageService{
    @Resource
    IRegisterManageRepository registerManageRepository;
    @Override
    public void registerApplicationInterface(ApplicationInterfaceEntity applicationInterfaceEntity) {
        registerManageRepository.registerApplicationInterface(applicationInterfaceEntity);
    }

    @Override
    public void registerApplicationInterfaceMethod(ApplicationInterfaceMethodEntity applicationInterfaceMethodEntity) {
        registerManageRepository.registerApplicationInterfaceMethod(applicationInterfaceMethodEntity);
    }

    @Override
    public void registerApplicationSystem(ApplicationSystemEntity applicationSystemEntity) {
        registerManageRepository.registerApplicationSystem(applicationSystemEntity);
    }

    @Override
    public String getGatewayIdBySystemId(String systemId) {
        return registerManageRepository.getGatewayIdBySystemId(systemId);
    }
}
